package top.hkyzf.study.j2se.syy.manage;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 朱峰
 * @date 2021-6-28 19:12
 */
public class Managment extends Person {
    private List<Person> subordinateList = new ArrayList<>();

    public List<Person> getSubordinate() {
        return subordinateList;
    }

    public void addSubordinate(Person persion) {
        this.subordinateList.add(persion);
    }

    public Managment(String no, String name, String position) {
        super(no, name, position);
    }
}
